<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('/', 'index/Index/index');
Route::get('admin/', 'admin/Index/index');
Route::get('Main/', 'admin/Main/index');
Route::post('login/', 'admin/Index/logindo');

//后台用户路由
Route::get('userselect','admin/UserA/select');
Route::get('useradd/','admin/UserA/add');
Route::post('userdoadd/','admin/UserA/doadd');
Route::get('userdel/','admin/UserA/del');
Route::get('userupdate/','admin/UserA/update');
Route::post('userdoupdate/','admin/UserA/doupdate');
Route::get('selrole/','admin/UserA/role');
Route::post('selrole/','admin/UserA/dorole');


//前台用户路由
Route::get('Huserselect','admin/Huser/select');
Route::get('Huseradd/','admin/Huser/add');
Route::post('Huserdoadd/','admin/Huser/doadd');
Route::get('Huserdel/','admin/Huser/del');
Route::get('Huserupdate/','admin/Huser/update');
Route::post('Huserdoupdate/','admin/Huser/doupdate');
Route::get('Hselrole/','admin/Huser/role');
Route::post('Hselrole/','admin/Huser/dorole');


//友情链接路由
Route::get('Friendshipselect','admin/Friendship/select');
Route::get('Friendshipadd/','admin/Friendship/add');
Route::post('Friendshipdoadd/','admin/Friendship/doadd');
Route::get('Friendshipdel/','admin/Friendship/del');
Route::get('Friendshipupdate/','admin/Friendship/update');
Route::post('Friendshipdoupdate/','admin/Friendship/doupdate');



//角色路由
Route::get('roleselect/','admin/Role/select');
Route::get('roleadd/','admin/Role/add');
Route::post('roledoadd/','admin/Role/doadd');
Route::get('roledel/:id','admin/Role/del');
Route::get('roleupdate/','admin/Role/update');
Route::post('roledoupdate/','admin/Role/doupdate');
Route::get('selnode/','admin/Role/node');
Route::post('selnode/','admin/Role/donode');


//章节路由
Route::get('chapterselect/','admin/Chapter/select');
Route::get('chapteradd/','admin/Chapter/add');
Route::post('chapterdoadd/','admin/Chapter/doadd');
Route::get('rchapterdel/:id','admin/Chapter/del');
Route::get('chapterupdate/','admin/Chapter/update');
Route::post('chapterdoupdate/','admin/Chapter/doupdate');
//Route::get('selnode/','admin/Role/node');
//Route::post('selnode/','admin/Role/donode');




//节点路由
Route::get('nodeselect/','admin/Node/select');
Route::get('nodeadd/','admin/Node/add');
Route::post('nodedoadd/','admin/Node/doadd');
Route::get('nodedel/:id','admin/Node/del');
Route::get('nodeupdate/','admin/Node/update');
Route::post('nodedoupdate/','admin/Node/doupdate');


//前台登录
Route::post('userindex/','index/Login/index');
Route::get('useremail/','index/Login/email');
Route::get('useout/','index/Login/out');
Route::post('useregister/','index/Login/register');


//后台分类
//
Route::resource('cate','admin/Category');
Route::get('delcate','admin/category/del');


//后台图书
Route::resource('txt','admin/Tushu');
Route::get('hot','admin/Tushu/dostatu');
Route::get('deltxt','admin/tushu/del');

//前台详情
Route::get('userbook','index/Book/index');
Route::get('xiaoshuo','index/index/index');
Route::get('xiaoshuolis','index/listc/index');
Route::get('xiaoshuodetai','index/detail/index');

//前台目录
Route::get('homechapter','index/Book/select');
Route::get('homeshang','index/Book/shang');
Route::get('homexia','index/Book/xia');
Route::get('homedu','index/Book/du');
//前台个人
Route::get('homeinfo','index/Book/info');
Route::post('infoupdate','index/Book/update');




//后台图书
Route::resource('image','admin/images');
Route::get('soly','admin/images/dostatu');
Route::get('deli','admin/images/del');

//前台书架
Route::post('shujia','index/person/shujia');
Route::get('show','index/person/showshu');
Route::get('delshu/:id','index/Person/delshu');

//404路由
Route::miss('index/miss/index');


//手机
Route::get('mobile','mobile/index/index');
Route::get('mmulu','mobile/index/mulu');
//手机注册
Route::get('mrege','mobile/Registe/index');
Route::post('zsuc','mobile/Registe/register');
//手机登录
Route::get('mlo','mobile/Login/index');
Route::post('dsuc','mobile/Login/login');
Route::get('mzhuxiao','mobile/Login/zhuxiao');

Route::get('mcontent','mobile/Index/showcontent');
Route::get('top','mobile/Index/showtop');
Route::get('down','mobile/Index/showdown');

//手机个人中心
Route::post('mperson','mobile/person/shujia');
Route::get('mshowshu','mobile/person/showshu');
//接口
Route::get('luyou1','index/index/luyou');
Route::get('luyou','api/index/luyou');

return [

];
